package com.rs.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.rs.model.Perforsc;


@Mapper
public interface PerforscMapper {
	int deleteByPrimaryKey(Integer pe_id);

	int insert(Perforsc record);

	Perforsc selectByPrimaryKey(Integer pe_id);

	List<Perforsc> selectAll();

	int updateByPrimaryKey(Perforsc record);

	//添加绩效得分表
	void addPerforsc(Perforsc perforsc);

	//查询数据库是否有改员工的绩效得分
	Perforsc queryPerforscExists(@Param("pe_uid") Integer pe_uid, @Param("pe_month") Date pe_month);

	//修改绩效得分表
	void updatePerforsc(Perforsc perforsc);

	/********app************/
	//员工查看自己的绩效
	Perforsc perforscLookOwnApp(Perforsc perforsc);

	//员工查看所有的绩效
	List<Perforsc> perforscLookAllApp(Integer pe_id);

	//上级查看自己部门的所有员工绩效
	List<Perforsc> perforscSuperiorLookAPP(Perforsc perforsc);

	/*************pc***********/
	//pc条件查询
	List<Perforsc> perforscConditionsQueryPc(Perforsc perforsc);

	//pc查询绩效详情
	Perforsc perforscForDetailsPc(Integer pe_id);
}